Custom frontend hooks let you modify the Autocomplete menu and Instantsearch page in the Algolia app for BigCommerce.
algoliaAutocompleteConfig.hooks
or algoliaInstantsearchConfig.hooks
.
Header
.All pages
.Essential
.Script
.Hook name ends with | Expected return type |
---|---|
Options | Object |
Template | tagged template literal |
Array | Array of strings or objects |
String | String |
Number | Number |
Action | Function |
autocompleteInitOptions
autocompleteResultTemplate
instantSearchInitOptions
instantSearchResultTemplate
allowedHooks
array.